<template>
  <div class="student">
    <h2>学校名称：{{ name }}</h2>
    <h2>学校地址：{{ address }}</h2>
    <button @click="showName">显示名称</button>
  </div>
</template>

<script>
import { showNameMixin, xyMixin } from "../mixins";

export default {
  name: "Student",
  data() {
    return {
      name: "重庆大学",
      address: "重庆",
    };
  },
  mixins: [showNameMixin, xyMixin],
};
</script>

<style scoped>
.student {
  background-color: plum;
  color: white;
}
</style>
